home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tools
/
mg
/
rexx
/
flen.mg
< prev
next >
Wrap
Text File
|
1995-03-09
|
508b
|
32 lines
/* Search for lines of the specified minimum lenght */
/* Handles TABs correctly */
options results
'rexx-request "Line length: "'
len=result
foo=0
do until foo~=0
'rexx-line'
bar=notab(result)
if length(bar)>=len then foo=666
else do
'next-line'
foo=rc
end
end
if foo~=666 then return 1
exit
notab:procedure
parse arg line
tmp=1
do until tmp=0
tmp=index(line,'09'x)
if tmp>0 then do
no=9-(tmp//8)
line=delstr(line,tmp,1)
line=insert(left("",no),line,tmp-1)
end
end
return line